package com.example.chirdrenserver;

import com.example.chirdrenserver.Authority.AuthorityUtils;
import com.example.chirdrenserver.Authority.BaseAuthority;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableAsync
@EnableAspectJAutoProxy
@EnableCaching
public class ChildrenServerApplication {

    public static void main(String[] args) {

        AuthorityUtils.setGlobalVerify(true,new BaseAuthority());
        SpringApplication.run(ChildrenServerApplication.class, args);
    }

}
